home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-04-19 | 9.9 KB | [TEXT/ttxt] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Apr 19 00:12:15 1995, modified Wed Apr 19 00:12:15 1995, creator SimpleText, type ASCII, 9278 bytes "Portability" , at 0x24be 566 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 50 6f 72 74 61 62 | 69 6c 69 74 79 00 00 00 |..Portab|ility...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 00 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 24 3e 00 | 00 02 36 ab ba 3e 1f ab |.....$>.|..6..>..|
|00000060| ba 3e 1f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.>......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 83 bc 00 00 |........|........|
|00000080| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 3a 20 50 6f |VideoToo|lbox: Po|
|00000090| 72 74 61 62 69 6c 69 74 | 79 0d 41 70 72 69 6c 20 |rtabilit|y.April |
|000000a0| 31 38 2c 20 31 39 39 35 | 0d 0d 4d 41 4b 49 4e 47 |18, 1995|..MAKING|
|000000b0| 20 59 4f 55 52 20 50 52 | 4f 47 52 41 4d 53 20 50 | YOUR PR|OGRAMS P|
|000000c0| 4f 52 54 41 42 4c 45 3a | 0d 45 76 65 72 79 74 68 |ORTABLE:|.Everyth|
|000000d0| 69 6e 67 20 65 6c 73 65 | 20 62 65 69 6e 67 20 65 |ing else| being e|
|000000e0| 71 75 61 6c 2c 20 79 6f | 75 d5 64 20 6c 69 6b 65 |qual, yo|u.d like|
|000000f0| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 73 20 74 | your pr|ograms t|
|00000100| 6f 20 72 75 6e 20 6f 6e | 20 61 73 20 77 69 64 65 |o run on| as wide|
|00000110| 20 61 20 76 61 72 69 65 | 74 79 20 6f 66 20 6d 61 | a varie|ty of ma|
|00000120| 63 68 69 6e 65 73 20 61 | 73 20 70 6f 73 73 69 62 |chines a|s possib|
|00000130| 6c 65 2c 20 61 6e 64 20 | 65 78 69 74 20 67 72 61 |le, and |exit gra|
|00000140| 63 65 66 75 6c 6c 79 20 | 28 77 69 74 68 20 61 6e |cefully |(with an|
|00000150| 20 65 78 70 6c 61 6e 61 | 74 69 6f 6e 29 20 6f 6e | explana|tion) on|
|00000160| 20 74 68 65 20 72 65 73 | 74 2e 20 54 68 65 20 56 | the res|t. The V|
|00000170| 69 64 65 6f 54 6f 6f 6c | 62 6f 78 20 69 73 20 61 |ideoTool|box is a|
|00000180| 73 20 70 6f 72 74 61 62 | 6c 65 20 61 73 20 70 6f |s portab|le as po|
|00000190| 73 73 69 62 6c 65 2c 20 | 67 69 76 65 6e 20 74 68 |ssible, |given th|
|000001a0| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 6f 70 65 72 |e Macint|osh oper|
|000001b0| 61 74 69 6e 67 20 73 79 | 73 74 65 6d 20 74 72 61 |ating sy|stem tra|
|000001c0| 70 73 20 74 68 61 74 20 | 69 74 20 75 73 65 73 2e |ps that |it uses.|
|000001d0| 20 54 68 65 20 64 72 69 | 76 69 6e 67 20 66 6f 72 | The dri|ving for|
|000001e0| 63 65 20 66 6f 72 20 63 | 6f 6d 70 61 74 69 62 69 |ce for c|ompatibi|
|000001f0| 6c 69 74 79 20 68 61 73 | 20 62 65 65 6e 20 54 69 |lity has| been Ti|
|00000200| 6d 65 56 69 64 65 6f 2c | 20 77 68 69 63 68 20 68 |meVideo,| which h|
|00000210| 61 73 20 62 65 65 6e 20 | 74 65 73 74 65 64 20 6f |as been |tested o|
|00000220| 6e 20 61 20 77 69 64 65 | 20 76 61 72 69 65 74 79 |n a wide| variety|
|00000230| 20 6f 66 20 4d 61 63 73 | 2c 20 61 6e 64 20 6e 6f | of Macs|, and no|
|00000240| 77 20 72 75 6e 73 20 6f | 6e 20 61 6e 79 20 4d 61 |w runs o|n any Ma|
|00000250| 63 20 77 69 74 68 20 53 | 79 73 74 65 6d 20 36 2e |c with S|ystem 6.|
|00000260| 30 35 20 6f 72 20 62 65 | 74 74 65 72 2e 0d 0d 43 |05 or be|tter...C|
|00000270| 4f 4d 50 55 54 45 52 20 | 43 4f 4d 50 41 54 49 42 |OMPUTER |COMPATIB|
|00000280| 49 4c 49 54 59 3a 0d 53 | 65 76 65 72 61 6c 20 63 |ILITY:.S|everal c|
|00000290| 6f 6c 6c 65 61 67 75 65 | 73 20 68 61 76 65 20 65 |olleague|s have e|
|000002a0| 78 70 72 65 73 73 65 64 | 20 69 6e 74 65 72 65 73 |xpressed| interes|
|000002b0| 74 20 69 6e 20 75 73 69 | 6e 67 20 74 68 69 73 20 |t in usi|ng this |
|000002c0| 73 6f 66 74 77 61 72 65 | 20 6f 6e 20 44 4f 53 20 |software| on DOS |
|000002d0| 50 43 73 20 61 6e 64 20 | 53 75 6e 73 2e 20 4d 6f |PCs and |Suns. Mo|
|000002e0| 73 74 20 6f 66 20 74 68 | 65 20 72 6f 75 74 69 6e |st of th|e routin|
|000002f0| 65 73 20 61 72 65 20 62 | 75 69 6c 74 20 75 70 6f |es are b|uilt upo|
|00000300| 6e 20 51 75 69 63 6b 44 | 72 61 77 2c 20 61 6e 64 |n QuickD|raw, and|
|00000310| 20 74 68 65 72 65 66 6f | 72 65 20 61 72 65 20 6f | therefo|re are o|
|00000320| 6e 6c 79 20 75 73 65 66 | 75 6c 20 6f 6e 20 4d 61 |nly usef|ul on Ma|
|00000330| 63 73 2e 20 48 6f 77 65 | 76 65 72 2c 20 73 65 76 |cs. Howe|ver, sev|
|00000340| 65 72 61 6c 20 75 73 65 | 66 75 6c 20 70 61 63 6b |eral use|ful pack|
|00000350| 61 67 65 73 20 75 73 65 | 20 6e 6f 74 68 69 6e 67 |ages use| nothing|
|00000360| 20 62 75 74 20 53 74 61 | 6e 64 61 72 64 20 43 20 | but Sta|ndard C |
|00000370| 61 6e 64 20 77 69 6c 6c | 20 77 6f 72 6b 20 66 69 |and will| work fi|
|00000380| 6e 65 20 6f 6e 20 61 6e | 79 20 63 6f 6d 70 75 74 |ne on an|y comput|
|00000390| 65 72 3a 20 51 75 69 63 | 6b 33 20 28 4c 6f 67 4c |er: Quic|k3 (LogL|
|000003a0| 69 6b 65 6c 69 68 6f 6f | 64 2e 63 2c 20 4d 6f 6e |ikelihoo|d.c, Mon|
|000003b0| 6f 74 6f 6e 69 63 46 69 | 74 2e 63 2c 20 50 73 79 |otonicFi|t.c, Psy|
|000003c0| 63 68 6f 6d 65 74 72 69 | 63 46 69 74 2e 63 2c 20 |chometri|cFit.c, |
|000003d0| 65 74 63 2e 29 2c 20 41 | 73 73 69 67 6e 2e 63 2c |etc.), A|ssign.c,|
|000003e0| 20 42 72 65 61 6b 4c 69 | 6e 65 73 2e 63 2c 20 56 | BreakLi|nes.c, V|
|000003f0| 4c 61 6d 62 64 61 2e 63 | 2c 20 61 6e 64 20 61 6c |Lambda.c|, and al|
|00000400| 6c 20 74 68 65 20 73 74 | 61 74 69 73 74 69 63 61 |l the st|atistica|
|00000410| 6c 20 72 6f 75 74 69 6e | 65 73 20 28 72 61 6e 64 |l routin|es (rand|
|00000420| 55 2e 63 2c 20 6e 72 61 | 6e 64 2e 63 2c 20 42 69 |U.c, nra|nd.c, Bi|
|00000430| 6e 6f 6d 69 61 6c 2e 63 | 2c 20 43 68 69 53 71 75 |nomial.c|, ChiSqu|
|00000440| 61 72 65 2e 63 2c 20 4d | 65 61 6e 2e 63 2c 20 4e |are.c, M|ean.c, N|
|00000450| 6f 72 6d 61 6c 2e 63 2c | 20 53 68 75 66 66 6c 65 |ormal.c,| Shuffle|
|00000460| 2e 63 2c 20 55 6e 69 66 | 6f 72 6d 2e 63 29 2e 20 |.c, Unif|orm.c). |
|00000470| 54 68 65 20 56 69 64 65 | 6f 54 6f 6f 6c 62 6f 78 |The Vide|oToolbox|
|00000480| 2e 68 20 68 65 61 64 65 | 72 20 66 69 6c 65 20 64 |.h heade|r file d|
|00000490| 65 66 69 6e 65 73 20 61 | 20 73 79 6d 62 6f 6c 20 |efines a| symbol |
|000004a0| 22 4d 41 43 5f 43 22 20 | 74 68 61 74 20 69 73 20 |"MAC_C" |that is |
|000004b0| 6f 6e 6c 79 20 74 72 75 | 65 20 69 66 20 74 68 65 |only tru|e if the|
|000004c0| 20 63 6f 6d 70 69 6c 65 | 72 20 73 75 70 70 6f 72 | compile|r suppor|
|000004d0| 74 73 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |ts the M|acintosh|
|000004e0| 20 65 78 74 65 6e 73 69 | 6f 6e 73 20 74 6f 20 43 | extensi|ons to C|
|000004f0| 2e 20 46 6f 72 20 6d 61 | 78 69 6d 75 6d 20 70 6f |. For ma|ximum po|
|00000500| 72 74 61 62 69 6c 69 74 | 79 20 6f 66 20 74 68 65 |rtabilit|y of the|
|00000510| 20 56 69 64 65 6f 54 6f | 6f 6c 62 6f 78 20 70 61 | VideoTo|olbox pa|
|00000520| 63 6b 61 67 65 2c 20 74 | 68 65 20 4d 61 63 2d 64 |ckage, t|he Mac-d|
|00000530| 65 70 65 6e 64 65 6e 74 | 20 70 61 72 74 20 6f 66 |ependent| part of|
|00000540| 20 6d 61 6e 79 20 6f 66 | 20 74 68 65 20 66 69 6c | many of| the fil|
|00000550| 65 73 20 69 73 20 6f 6e | 6c 79 20 63 6f 6d 70 69 |es is on|ly compi|
|00000560| 6c 65 64 20 69 66 20 4d | 41 43 5f 43 20 69 73 20 |led if M|AC_C is |
|00000570| 74 72 75 65 2e 20 20 54 | 68 65 20 6c 75 6d 69 6e |true. T|he lumin|
|00000580| 61 6e 63 65 2d 63 6f 6e | 74 72 6f 6c 20 73 6f 66 |ance-con|trol sof|
|00000590| 74 77 61 72 65 20 69 6e | 20 4c 75 6d 69 6e 61 6e |tware in| Luminan|
|000005a0| 63 65 2e 63 20 6d 61 6b | 65 73 20 6d 69 6e 69 6d |ce.c mak|es minim|
|000005b0| 61 6c 20 75 73 65 20 6f | 66 20 47 44 48 61 6e 64 |al use o|f GDHand|
|000005c0| 6c 65 73 20 74 6f 20 64 | 65 73 69 67 6e 61 74 65 |les to d|esignate|
|000005d0| 20 70 61 72 74 69 63 75 | 6c 61 72 20 76 69 64 65 | particu|lar vide|
|000005e0| 6f 20 64 65 76 69 63 65 | 73 20 61 6e 64 20 6c 6f |o device|s and lo|
|000005f0| 61 64 20 74 68 65 69 72 | 20 63 6c 75 74 73 2c 20 |ad their| cluts, |
|00000600| 61 6e 64 20 63 6f 75 6c | 64 20 62 65 20 65 61 73 |and coul|d be eas|
|00000610| 69 6c 79 20 63 6f 6e 76 | 65 72 74 65 64 20 74 6f |ily conv|erted to|
|00000620| 20 77 6f 72 6b 20 77 69 | 74 68 20 73 6f 6d 65 20 | work wi|th some |
|00000630| 6f 74 68 65 72 20 73 63 | 68 65 6d 65 20 66 6f 72 |other sc|heme for|
|00000640| 20 64 65 73 69 67 6e 61 | 74 69 6e 67 20 76 69 64 | designa|ting vid|
|00000650| 65 6f 20 64 65 76 69 63 | 65 73 20 61 6e 64 20 6c |eo devic|es and l|
|00000660| 6f 61 64 69 6e 67 20 74 | 68 65 69 72 20 63 6c 75 |oading t|heir clu|
|00000670| 74 73 2e 0d 0d 4e 65 61 | 72 6c 79 20 61 6c 6c 20 |ts...Nea|rly all |
|00000680| 6f 66 20 74 68 65 20 56 | 69 64 65 6f 54 6f 6f 6c |of the V|ideoTool|
|00000690| 62 6f 78 20 6e 6f 77 20 | 72 75 6e 73 20 68 61 70 |box now |runs hap|
|000006a0| 70 69 6c 79 2c 20 6e 61 | 74 69 76 65 6c 79 2c 20 |pily, na|tively, |
|000006b0| 6f 6e 20 36 38 6b 20 61 | 6e 64 20 50 6f 77 65 72 |on 68k a|nd Power|
|000006c0| 50 43 2e 20 49 6e 20 70 | 6f 72 74 69 6e 67 20 63 |PC. In p|orting c|
|000006d0| 6f 64 65 20 66 72 6f 6d | 20 36 38 6b 20 74 6f 20 |ode from| 68k to |
|000006e0| 50 6f 77 65 72 50 43 20 | 4d 61 63 73 2c 20 53 74 |PowerPC |Macs, St|
|000006f0| 61 6e 64 61 72 64 20 43 | 20 69 73 20 6e 6f 20 70 |andard C| is no p|
|00000700| 72 6f 62 6c 65 6d 2e 20 | 54 68 65 20 74 72 69 63 |roblem. |The tric|
|00000710| 6b 79 20 70 61 72 74 20 | 61 72 69 73 65 73 20 6f |ky part |arises o|
|00000720| 6e 6c 79 20 77 68 65 6e | 20 79 6f 75 20 70 61 73 |nly when| you pas|
|00000730| 73 20 74 68 65 20 61 64 | 64 72 65 73 73 20 6f 66 |s the ad|dress of|
|00000740| 20 61 20 72 6f 75 74 69 | 6e 65 20 61 73 20 61 6e | a routi|ne as an|
|00000750| 20 61 72 67 75 6d 65 6e | 74 2c 20 61 6e 64 20 79 | argumen|t, and y|
|00000760| 6f 75 20 63 61 6e 27 74 | 20 62 65 20 73 75 72 65 |ou can't| be sure|
|00000770| 20 77 68 65 74 68 65 72 | 20 74 68 65 20 72 6f 75 | whether| the rou|
|00000780| 74 69 6e 65 20 77 69 6c | 6c 20 62 65 20 63 61 6c |tine wil|l be cal|
|00000790| 6c 65 64 20 77 68 65 6e | 20 74 68 65 20 63 6f 6d |led when| the com|
|000007a0| 70 75 74 65 72 20 69 73 | 20 72 75 6e 6e 69 6e 67 |puter is| running|
|000007b0| 20 6e 61 74 69 76 65 20 | 6f 72 20 65 6d 75 6c 61 | native |or emula|
|000007c0| 74 69 6e 67 20 61 20 36 | 38 6b 2e 20 28 52 65 6d |ting a 6|8k. (Rem|
|000007d0| 65 6d 62 65 72 2c 20 6d | 75 63 68 20 6f 66 20 74 |ember, m|uch of t|
|000007e0| 68 65 20 41 70 70 6c 65 | 20 54 6f 6f 6c 62 6f 78 |he Apple| Toolbox|
|000007f0| 20 69 73 20 73 74 69 6c | 6c 20 36 38 6b 20 63 6f | is stil|l 68k co|
|00000800| 64 65 2e 29 20 41 70 70 | 6c 65 20 64 65 76 65 6c |de.) App|le devel|
|00000810| 6f 70 65 64 20 61 20 4d | 69 78 65 64 20 4d 6f 64 |oped a M|ixed Mod|
|00000820| 65 20 4d 61 6e 61 67 65 | 72 20 74 6f 20 64 65 61 |e Manage|r to dea|
|00000830| 6c 20 77 69 74 68 20 74 | 68 69 73 2e 20 48 6f 70 |l with t|his. Hop|
|00000840| 65 66 75 6c 6c 79 20 79 | 6f 75 20 77 6f 6e 27 74 |efully y|ou won't|
|00000850| 20 68 61 76 65 20 74 6f | 20 77 6f 72 72 79 20 61 | have to| worry a|
|00000860| 62 6f 75 74 20 69 74 2c | 20 73 69 6e 63 65 20 74 |bout it,| since t|
|00000870| 68 65 20 56 69 64 65 6f | 54 6f 6f 6c 62 6f 78 20 |he Video|Toolbox |
|00000880| 6d 61 79 20 61 6c 72 65 | 61 64 79 20 70 72 6f 76 |may alre|ady prov|
|00000890| 69 64 65 20 61 6c 6c 20 | 74 68 65 20 66 75 6e 63 |ide all |the func|
|000008a0| 74 69 6f 6e 61 6c 69 74 | 79 20 79 6f 75 20 6e 65 |tionalit|y you ne|
|000008b0| 65 64 2e 20 48 6f 77 65 | 76 65 72 2c 20 69 66 20 |ed. Howe|ver, if |
|000008c0| 79 6f 75 27 72 65 20 69 | 6e 74 65 72 65 73 74 65 |you're i|ntereste|
|000008d0| 64 2c 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |d, the f|ollowing|
|000008e0| 20 61 72 74 69 63 6c 65 | 20 73 70 65 6c 6c 73 20 | article| spells |
|000008f0| 6f 75 74 20 65 78 61 63 | 74 6c 79 20 77 68 61 74 |out exac|tly what|
|00000900| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 64 6f 3a | you nee|d to do:|
|00000910| 0d 52 61 64 63 6c 69 66 | 66 2c 20 44 2e 20 28 31 |.Radclif|f, D. (1|
|00000920| 39 39 33 29 20 4d 61 6b | 69 6e 67 20 74 68 65 20 |993) Mak|ing the |
|00000930| 6c 65 61 70 20 74 6f 20 | 50 6f 77 65 72 50 43 2e |leap to |PowerPC.|
|00000940| 20 44 65 76 65 6c 6f 70 | 20 31 36 3a 35 2d 33 33 | Develop| 16:5-33|
|00000950| 2e 20 28 42 61 63 6b 20 | 69 73 73 75 65 73 20 6f |. (Back |issues o|
|00000960| 66 20 44 65 76 65 6c 6f | 70 20 63 61 6e 20 62 65 |f Develo|p can be|
|00000970| 20 6f 72 64 65 72 65 64 | 20 66 72 6f 6d 20 41 50 | ordered| from AP|
|00000980| 44 41 20 61 6e 64 20 61 | 72 65 20 69 6e 63 6c 75 |DA and a|re inclu|
|00000990| 64 65 64 20 61 73 20 64 | 6f 63 75 6d 65 6e 74 73 |ded as d|ocuments|
|000009a0| 20 6f 6e 20 74 68 65 20 | 44 65 76 65 6c 6f 70 65 | on the |Develope|
|000009b0| 72 20 43 44 2d 52 4f 4d | 73 2e 29 0d 0d 43 4f 4d |r CD-ROM|s.)..COM|
|000009c0| 50 49 4c 45 52 20 43 4f | 4d 50 41 54 49 42 49 4c |PILER CO|MPATIBIL|
|000009d0| 49 54 59 3a 0d 49 20 72 | 65 63 6f 6d 6d 65 6e 64 |ITY:.I r|ecommend|
|000009e0| 20 74 68 61 74 20 79 6f | 75 20 75 73 65 20 74 68 | that yo|u use th|
|000009f0| 65 20 6c 61 74 65 73 74 | 20 76 65 72 73 69 6f 6e |e latest| version|
|00000a00| 20 6f 66 20 4d 65 74 72 | 6f 77 65 72 6b 73 20 43 | of Metr|owerks C|
|00000a10| 6f 64 65 57 61 72 72 69 | 6f 72 20 47 6f 6c 64 20 |odeWarri|or Gold |
|00000a20| 43 20 6f 72 20 53 79 6d | 61 6e 74 65 63 20 54 48 |C or Sym|antec TH|
|00000a30| 49 4e 4b 20 43 3b 20 73 | 65 65 20 22 41 64 76 69 |INK C; s|ee "Advi|
|00000a40| 63 65 22 2e 20 49 20 73 | 75 67 67 65 73 74 20 79 |ce". I s|uggest y|
|00000a50| 6f 75 20 67 65 74 20 61 | 73 20 6d 75 63 68 20 68 |ou get a|s much h|
|00000a60| 65 6c 70 20 61 73 20 79 | 6f 75 20 63 61 6e 20 66 |elp as y|ou can f|
|00000a70| 72 6f 6d 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |rom the |compiler|
|00000a80| 20 62 79 20 61 6c 77 61 | 79 73 20 65 6e 61 62 6c | by alwa|ys enabl|
|00000a90| 69 6e 67 20 74 68 65 20 | 73 74 72 69 63 74 65 73 |ing the |strictes|
|00000aa0| 74 20 70 6f 73 73 69 62 | 6c 65 20 63 68 65 63 6b |t possib|le check|
|00000ab0| 69 6e 67 2c 20 65 73 70 | 65 63 69 61 6c 6c 79 20 |ing, esp|ecially |
|00000ac0| 74 68 65 20 d2 52 65 71 | 75 69 72 65 20 70 72 6f |the .Req|uire pro|
|00000ad0| 74 6f 74 79 70 65 73 d3 | 20 61 6e 64 20 d2 43 68 |totypes.| and .Ch|
|00000ae0| 65 63 6b 20 70 6f 69 6e | 74 65 72 20 74 79 70 65 |eck poin|ter type|
|00000af0| 73 d3 20 6f 70 74 69 6f | 6e 73 2e 20 49 6e 20 54 |s. optio|ns. In T|
|00000b00| 48 49 4e 4b 20 43 2c 20 | 73 65 74 20 d2 5c 70 20 |HINK C, |set .\p |
|00000b10| 69 73 20 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |is unsig|ned char|
|00000b20| 20 2a d3 20 28 75 6e 64 | 65 72 20 d2 43 6f 6d 70 | *. (und|er .Comp|
|00000b30| 69 6c 65 72 20 73 65 74 | 74 69 6e 67 73 d3 29 2e |iler set|tings.).|
|00000b40| 20 49 20 61 6c 73 6f 20 | 72 65 63 6f 6d 6d 65 6e | I also |recommen|
|00000b50| 64 20 75 73 69 6e 67 20 | 54 48 49 4e 4b 20 43 d5 |d using |THINK C.|
|00000b60| 73 20 22 75 6e 69 76 65 | 72 73 61 6c 22 20 66 6c |s "unive|rsal" fl|
|00000b70| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 66 6f 72 |oating p|oint for|
|00000b80| 6d 61 74 20 28 69 2e 65 | 2e 20 64 6f 6e d5 74 20 |mat (i.e|. don.t |
|00000b90| 63 68 65 63 6b 20 d2 4e | 61 74 69 76 65 20 66 6c |check .N|ative fl|
|00000ba0| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 66 6f 72 |oating p|oint for|
|00000bb0| 6d 61 74 d3 20 75 6e 64 | 65 72 20 d2 43 6f 6d 70 |mat. und|er .Comp|
|00000bc0| 69 6c 65 72 20 73 65 74 | 74 69 6e 67 73 d3 29 2c |iler set|tings.),|
|00000bd0| 20 62 65 63 61 75 73 65 | 20 69 74 20 61 6c 6c 6f | because| it allo|
|00000be0| 77 73 20 61 6c 6c 20 79 | 6f 75 72 20 70 72 6f 6a |ws all y|our proj|
|00000bf0| 65 63 74 73 2c 20 77 68 | 65 74 68 65 72 20 6f 72 |ects, wh|ether or|
|00000c00| 20 6e 6f 74 20 74 68 65 | 79 20 75 73 65 20 74 68 | not the|y use th|
|00000c10| 65 20 36 38 38 38 31 2c | 20 74 6f 20 75 73 65 20 |e 68881,| to use |
|00000c20| 74 68 65 20 73 61 6d 65 | 20 41 4e 53 49 20 6c 69 |the same| ANSI li|
|00000c30| 62 72 61 72 79 20 61 6e | 64 20 70 72 65 63 6f 6d |brary an|d precom|
|00000c40| 70 69 6c 65 64 20 68 65 | 61 64 65 72 2c 20 61 6e |piled he|ader, an|
|00000c50| 64 20 74 68 65 20 73 70 | 65 65 64 20 61 6e 64 20 |d the sp|eed and |
|00000c60| 73 70 61 63 65 20 70 65 | 6e 61 6c 74 79 20 61 72 |space pe|nalty ar|
|00000c70| 65 20 6e 65 67 6c 69 67 | 69 62 6c 65 2e 0d 0d 54 |e neglig|ible...T|
|00000c80| 68 65 20 53 79 6d 61 6e | 74 65 63 20 54 48 49 4e |he Syman|tec THIN|
|00000c90| 4b 20 43 2c 20 41 70 70 | 6c 65 20 4d 50 57 20 43 |K C, App|le MPW C|
|00000ca0| 2c 20 61 6e 64 20 4d 65 | 74 72 6f 77 65 72 6b 73 |, and Me|trowerks|
|00000cb0| 20 43 6f 64 65 57 61 72 | 72 69 6f 72 20 43 20 63 | CodeWar|rior C c|
|00000cc0| 6f 6d 70 69 6c 65 72 73 | 20 68 61 76 65 20 61 20 |ompilers| have a |
|00000cd0| 66 65 77 20 6d 69 6e 6f | 72 20 64 69 66 66 65 72 |few mino|r differ|
|00000ce0| 65 6e 63 65 73 2e 20 0d | 31 2e 20 54 48 49 4e 4b |ences. .|1. THINK|
|00000cf0| 20 61 6e 64 20 4d 50 57 | 20 43 20 73 75 70 70 6f | and MPW| C suppo|
|00000d00| 72 74 20 73 74 64 69 6f | 20 70 72 69 6e 74 69 6e |rt stdio| printin|
|00000d10| 67 20 6f 66 20 50 61 73 | 63 61 6c 20 73 74 72 69 |g of Pas|cal stri|
|00000d20| 6e 67 73 20 75 73 69 6e | 67 20 74 68 65 20 66 6f |ngs usin|g the fo|
|00000d30| 72 6d 61 74 20 22 25 23 | 73 22 2c 20 77 68 69 63 |rmat "%#|s", whic|
|00000d40| 68 20 69 73 20 6e 6f 74 | 20 70 61 72 74 20 6f 66 |h is not| part of|
|00000d50| 20 53 74 61 6e 64 61 72 | 64 20 43 2e 20 43 6f 64 | Standar|d C. Cod|
|00000d60| 65 57 61 72 72 69 6f 72 | 20 43 20 64 6f 65 73 6e |eWarrior| C doesn|
|00000d70| 27 74 20 72 65 63 6f 67 | 6e 69 7a 65 20 74 68 61 |'t recog|nize tha|
|00000d80| 74 20 70 72 69 6e 74 20 | 66 6f 72 6d 61 74 3b 20 |t print |format; |
|00000d90| 79 6f 75 20 68 61 76 65 | 20 74 6f 20 75 73 65 20 |you have| to use |
|00000da0| 63 32 70 73 74 72 20 74 | 6f 20 63 6f 6e 76 65 72 |c2pstr t|o conver|
|00000db0| 74 20 79 6f 75 72 20 50 | 61 73 63 61 6c 20 73 74 |t your P|ascal st|
|00000dc0| 72 69 6e 67 20 74 6f 20 | 61 20 43 20 73 74 72 69 |ring to |a C stri|
|00000dd0| 6e 67 20 61 6e 64 20 75 | 73 65 20 74 68 65 20 73 |ng and u|se the s|
|00000de0| 74 61 6e 64 61 72 64 20 | 73 74 72 69 6e 67 20 66 |tandard |string f|
|00000df0| 6f 72 6d 61 74 20 22 25 | 73 22 2e 0d 32 2e 20 54 |ormat "%|s"..2. T|
|00000e00| 68 65 20 76 61 72 69 6f | 75 73 20 63 6f 6d 70 69 |he vario|us compi|
|00000e10| 6c 65 72 73 2c 20 69 6e | 63 6c 75 64 69 6e 67 20 |lers, in|cluding |
|00000e20| 41 70 70 6c 65 27 73 2c | 20 6f 66 66 65 72 20 61 |Apple's,| offer a|
|00000e30| 20 62 65 77 69 6c 64 65 | 72 69 6e 67 20 76 61 72 | bewilde|ring var|
|00000e40| 69 65 74 79 20 6f 66 20 | 6e 61 6d 65 73 20 66 6f |iety of |names fo|
|00000e50| 72 20 74 77 6f 20 74 72 | 69 76 69 61 6c 2c 20 62 |r two tr|ivial, b|
|00000e60| 75 74 20 6d 75 63 68 2d | 75 73 65 64 2c 20 72 6f |ut much-|used, ro|
|00000e70| 75 74 69 6e 65 73 20 74 | 6f 20 63 6f 6e 76 65 72 |utines t|o conver|
|00000e80| 74 20 62 61 63 6b 20 61 | 6e 64 20 66 6f 72 74 68 |t back a|nd forth|
|00000e90| 20 62 65 74 77 65 65 6e | 20 43 20 61 6e 64 20 50 | between| C and P|
|00000ea0| 61 73 63 61 6c 20 73 74 | 72 69 6e 67 73 2e 20 49 |ascal st|rings. I|
|00000eb0| 20 73 75 67 67 65 73 74 | 20 74 68 61 74 20 79 6f | suggest| that yo|
|00000ec0| 75 20 73 74 61 6e 64 61 | 72 64 69 7a 65 20 6f 6e |u standa|rdize on|
|00000ed0| 20 22 63 32 70 73 74 72 | 20 61 6e 64 20 70 32 63 | "c2pstr| and p2c|
|00000ee0| 73 74 72 22 2c 20 77 68 | 69 63 68 20 61 72 65 20 |str", wh|ich are |
|00000ef0| 63 75 72 72 65 6e 74 6c | 79 20 64 65 66 69 6e 65 |currentl|y define|
|00000f00| 64 20 69 6e 20 41 70 70 | 6c 65 27 73 20 53 74 72 |d in App|le's Str|
|00000f10| 69 6e 67 73 2e 68 2e 20 | 56 69 64 65 6f 54 6f 6f |ings.h. |VideoToo|
|00000f20| 6c 62 6f 78 2e 68 20 68 | 61 73 20 76 61 72 69 6f |lbox.h h|as vario|
|00000f30| 75 73 20 63 6f 6e 64 69 | 74 69 6f 6e 61 6c 73 20 |us condi|tionals |
|00000f40| 74 6f 20 64 65 61 6c 20 | 77 69 74 68 20 6f 6c 64 |to deal |with old|
|00000f50| 65 72 20 68 65 61 64 65 | 72 20 66 69 6c 65 73 2c |er heade|r files,|
|00000f60| 20 74 6f 20 6d 61 6b 65 | 20 73 75 72 65 20 74 68 | to make| sure th|
|00000f70| 61 74 20 74 68 65 73 65 | 20 6e 61 6d 65 73 20 77 |at these| names w|
|00000f80| 69 6c 6c 20 61 6c 77 61 | 79 73 20 77 6f 72 6b 2e |ill alwa|ys work.|
|00000f90| 20 49 20 73 75 67 67 65 | 73 74 20 79 6f 75 20 75 | I sugge|st you u|
|00000fa0| 73 65 20 74 68 65 20 70 | 72 65 66 65 72 72 65 64 |se the p|referred|
|00000fb0| 20 28 6c 6f 77 65 72 20 | 63 61 73 65 29 20 72 6f | (lower |case) ro|
|00000fc0| 75 74 69 6e 65 20 6e 61 | 6d 65 73 20 69 6e 20 70 |utine na|mes in p|
|00000fd0| 6c 61 63 65 20 6f 66 20 | 74 68 65 20 6f 6c 64 65 |lace of |the olde|
|00000fe0| 72 20 28 6d 69 78 65 64 | 20 63 61 73 65 29 20 6e |r (mixed| case) n|
|00000ff0| 61 6d 65 73 3a 20 43 32 | 50 53 74 72 2c 20 43 74 |ames: C2|PStr, Ct|
|00001000| 6f 50 73 74 72 2c 20 50 | 32 43 53 74 72 2c 20 61 |oPstr, P|2CStr, a|
|00001010| 6e 64 20 50 74 6f 43 73 | 74 72 2e 0d 33 2e 20 43 |nd PtoCs|tr..3. C|
|00001020| 6f 64 65 57 61 72 72 69 | 6f 72 20 61 6e 64 20 54 |odeWarri|or and T|
|00001030| 48 49 4e 4b 20 43 20 68 | 61 76 65 20 75 6e 69 71 |HINK C h|ave uniq|
|00001040| 75 65 20 69 6e 63 6f 6d | 70 61 74 69 62 6c 65 20 |ue incom|patible |
|00001050| 73 63 68 65 6d 65 73 20 | 66 6f 72 20 69 6e 63 6c |schemes |for incl|
|00001060| 75 64 69 6e 67 20 61 73 | 73 65 6d 62 6c 79 20 63 |uding as|sembly c|
|00001070| 6f 64 65 20 69 6e 20 43 | 20 66 69 6c 65 73 2e 20 |ode in C| files. |
|00001080| 28 55 6e 66 6f 72 74 75 | 6e 61 74 65 6c 79 2c 20 |(Unfortu|nately, |
|00001090| 53 74 61 6e 64 61 72 64 | 20 43 20 64 6f 65 73 20 |Standard| C does |
|000010a0| 6e 6f 74 20 73 70 65 63 | 69 66 79 20 61 20 73 74 |not spec|ify a st|
|000010b0| 61 6e 64 61 72 64 20 77 | 61 79 20 74 6f 20 64 6f |andard w|ay to do|
|000010c0| 20 74 68 69 73 2e 29 20 | 4d 50 57 20 43 20 77 69 | this.) |MPW C wi|
|000010d0| 6c 6c 20 6f 6e 6c 79 20 | 61 6c 6c 6f 77 20 6d 61 |ll only |allow ma|
|000010e0| 63 68 69 6e 65 20 63 6f | 64 65 20 28 69 2e 65 2e |chine co|de (i.e.|
|000010f0| 20 6e 75 6d 62 65 72 73 | 29 2e 20 54 68 69 73 20 | numbers|). This |
|00001100| 61 66 66 65 63 74 73 20 | 53 65 74 45 6e 74 72 69 |affects |SetEntri|
|00001110| 65 73 51 75 69 63 6b 6c | 79 2e 63 2e 20 41 73 73 |esQuickl|y.c. Ass|
|00001120| 65 6d 62 6c 79 20 63 6f | 64 65 20 69 73 20 70 72 |embly co|de is pr|
|00001130| 6f 63 65 73 73 6f 72 20 | 73 70 65 63 69 66 69 63 |ocessor |specific|
|00001140| 2c 20 73 6f 20 49 20 73 | 75 67 67 65 73 74 20 61 |, so I s|uggest a|
|00001150| 76 6f 69 64 69 6e 67 20 | 69 74 2e 0d 34 2e 20 57 |voiding |it..4. W|
|00001160| 68 65 6e 20 63 6f 6d 70 | 69 6c 69 6e 67 20 66 6f |hen comp|iling fo|
|00001170| 72 20 36 38 6b 20 6d 61 | 63 68 69 6e 65 73 2c 20 |r 68k ma|chines, |
|00001180| 54 48 49 4e 4b 20 61 6e | 64 20 43 6f 64 65 57 61 |THINK an|d CodeWa|
|00001190| 72 72 69 6f 72 20 43 20 | 61 6c 6c 6f 77 20 79 6f |rrior C |allow yo|
|000011a0| 75 20 74 6f 20 73 70 65 | 63 69 66 79 20 74 68 65 |u to spe|cify the|
|000011b0| 20 73 69 7a 65 20 6f 66 | 20 69 6e 74 20 74 6f 20 | size of| int to |
|000011c0| 62 65 20 65 69 74 68 65 | 72 20 32 20 28 22 73 68 |be eithe|r 2 ("sh|
|000011d0| 6f 72 74 22 29 20 6f 72 | 20 34 20 62 79 74 65 73 |ort") or| 4 bytes|
|000011e0| 20 28 6c 6f 6e 67 29 2e | 20 4d 50 57 20 43 20 73 | (long).| MPW C s|
|000011f0| 65 74 73 20 69 74 20 74 | 6f 20 34 20 62 79 74 65 |ets it t|o 4 byte|
|00001200| 73 20 28 6c 6f 6e 67 29 | 2e 20 4f 6e 20 50 6f 77 |s (long)|. On Pow|
|00001210| 65 72 50 43 20 61 6e 20 | 69 6e 74 20 69 73 20 61 |erPC an |int is a|
|00001220| 6c 77 61 79 73 20 34 20 | 62 79 74 65 73 2e 20 57 |lways 4 |bytes. W|
|00001230| 68 65 6e 20 69 74 20 6d | 61 74 74 65 72 73 2c 20 |hen it m|atters, |
|00001240| 79 6f 75 20 73 68 6f 75 | 6c 64 20 65 78 70 6c 69 |you shou|ld expli|
|00001250| 63 69 74 6c 79 20 64 65 | 63 6c 61 72 65 20 79 6f |citly de|clare yo|
|00001260| 75 72 20 76 61 72 69 61 | 62 6c 65 73 20 61 73 20 |ur varia|bles as |
|00001270| d2 73 68 6f 72 74 d3 20 | 6f 72 20 d2 6c 6f 6e 67 |.short. |or .long|
|00001280| d3 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 6a 75 |. rather| than ju|
|00001290| 73 74 20 d2 69 6e 74 d3 | 2e 0d 35 2e 20 41 6c 6c |st .int.|..5. All|
|000012a0| 20 74 68 72 65 65 20 63 | 6f 6d 70 69 6c 65 72 73 | three c|ompilers|
|000012b0| 20 68 61 76 65 20 73 6f | 6d 65 20 73 75 70 70 6f | have so|me suppo|
|000012c0| 72 74 20 66 6f 72 20 61 | 20 63 6f 6e 73 6f 6c 65 |rt for a| console|
|000012d0| 20 77 69 6e 64 6f 77 20 | 66 6f 72 20 73 74 64 6f | window |for stdo|
|000012e0| 75 74 20 61 6e 64 20 73 | 74 64 69 6e 2e 20 42 75 |ut and s|tdin. Bu|
|000012f0| 74 20 4d 50 57 27 73 20 | 69 73 20 72 75 64 69 6d |t MPW's |is rudim|
|00001300| 65 6e 74 61 72 79 2e 20 | 54 48 49 4e 4b 20 43 20 |entary. |THINK C |
|00001310| 61 6e 64 20 43 6f 64 65 | 57 61 72 72 69 6f 72 20 |and Code|Warrior |
|00001320| 62 6f 74 68 20 68 61 76 | 65 20 75 73 65 66 75 6c |both hav|e useful|
|00001330| 20 63 6f 6e 73 6f 6c 65 | 73 2e 0d 0d 50 41 53 43 | console|s...PASC|
|00001340| 41 4c 3a 0d 54 68 65 20 | 56 69 64 65 6f 54 6f 6f |AL:.The |VideoToo|
|00001350| 6c 62 6f 78 20 63 61 6e | 20 62 65 20 6d 61 64 65 |lbox can| be made|
|00001360| 20 69 6e 74 6f 20 61 20 | 50 61 73 63 61 6c 2d 63 | into a |Pascal-c|
|00001370| 61 6c 6c 61 62 6c 65 20 | 6c 69 62 72 61 72 79 20 |allable |library |
|00001380| 66 61 69 72 6c 79 20 65 | 61 73 69 6c 79 2e 20 59 |fairly e|asily. Y|
|00001390| 6f 75 20 6a 75 73 74 20 | 61 64 64 20 74 68 65 20 |ou just |add the |
|000013a0| 70 72 65 66 69 78 20 22 | 70 61 73 63 61 6c 22 20 |prefix "|pascal" |
|000013b0| 74 6f 20 61 6c 6c 20 74 | 68 65 20 66 75 6e 63 74 |to all t|he funct|
|000013c0| 69 6f 6e 20 64 65 63 6c | 61 72 61 74 69 6f 6e 73 |ion decl|arations|
|000013d0| 20 61 6e 64 20 63 6f 6d | 70 69 6c 65 20 69 74 20 | and com|pile it |
|000013e0| 69 6e 74 6f 20 61 20 6c | 69 62 72 61 72 79 2c 20 |into a l|ibrary, |
|000013f0| 77 68 69 63 68 20 49 20 | 75 6e 64 65 72 73 74 61 |which I |understa|
|00001400| 6e 64 20 79 6f 75 20 63 | 61 6e 20 74 68 65 6e 20 |nd you c|an then |
|00001410| 63 61 6c 6c 20 66 72 6f | 6d 20 50 61 73 63 61 6c |call fro|m Pascal|
|00001420| 2e 20 48 6f 77 65 76 65 | 72 2c 20 49 27 76 65 20 |. Howeve|r, I've |
|00001430| 6e 65 76 65 72 20 74 72 | 69 65 64 20 74 68 69 73 |never tr|ied this|
|00001440| 2e 0d 0d 53 59 53 54 45 | 4d 20 43 4f 4d 50 41 54 |...SYSTE|M COMPAT|
|00001450| 49 42 49 4c 49 54 59 3a | 0d 49 6e 20 67 65 6e 65 |IBILITY:|.In gene|
|00001460| 72 61 6c 2c 20 49 20 72 | 65 63 6f 6d 6d 65 6e 64 |ral, I r|ecommend|
|00001470| 20 75 73 69 6e 67 20 74 | 68 65 20 6c 61 74 65 73 | using t|he lates|
|00001480| 74 20 53 79 73 74 65 6d | 20 73 6f 66 74 77 61 72 |t System| softwar|
|00001490| 65 2e 20 45 76 65 72 79 | 74 68 69 6e 67 20 72 75 |e. Every|thing ru|
|000014a0| 6e 73 20 66 69 6e 65 20 | 75 6e 64 65 72 20 53 79 |ns fine |under Sy|
|000014b0| 73 74 65 6d 73 20 36 20 | 61 6e 64 20 37 2c 20 61 |stems 6 |and 7, a|
|000014c0| 6e 64 20 69 73 20 63 6f | 6d 70 61 74 69 62 6c 65 |nd is co|mpatible|
|000014d0| 20 77 69 74 68 20 33 32 | 2d 62 69 74 20 6d 6f 64 | with 32|-bit mod|
|000014e0| 65 20 61 6e 64 20 76 69 | 72 74 75 61 6c 20 6d 65 |e and vi|rtual me|
|000014f0| 6d 6f 72 79 2e 20 20 28 | 49 20 68 61 76 65 6e 27 |mory. (|I haven'|
|00001500| 74 20 74 72 69 65 64 20 | 53 79 73 74 65 6d 20 37 |t tried |System 7|
|00001510| 2e 35 20 79 65 74 2c 20 | 62 75 74 20 64 6f 6e 27 |.5 yet, |but don'|
|00001520| 74 20 61 6e 74 69 63 69 | 70 61 74 65 20 61 6e 79 |t antici|pate any|
|00001530| 20 69 6e 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 | incompa|tibility|
|00001540| 2e 29 20 4e 6f 6e 65 20 | 6f 66 20 74 68 65 20 64 |.) None |of the d|
|00001550| 65 6d 6f 73 20 69 73 20 | d2 4d 75 6c 74 69 46 69 |emos is |.MultiFi|
|00001560| 6e 64 65 72 20 66 72 69 | 65 6e 64 6c 79 d3 2e 20 |nder fri|endly.. |
|00001570| 54 68 65 79 d5 72 65 20 | 63 6f 6d 70 61 74 69 62 |They.re |compatib|
|00001580| 6c 65 20 77 69 74 68 20 | 4d 75 6c 74 69 46 69 6e |le with |MultiFin|
|00001590| 64 65 72 2c 20 62 75 74 | 20 74 68 65 79 20 61 6c |der, but| they al|
|000015a0| 6c 20 68 6f 67 20 74 68 | 65 20 6d 61 63 68 69 6e |l hog th|e machin|
|000015b0| 65 2c 20 77 68 69 63 68 | 20 49 20 74 68 69 6e 6b |e, which| I think|
|000015c0| 20 69 73 20 70 65 72 66 | 65 63 74 6c 79 20 70 72 | is perf|ectly pr|
|000015d0| 6f 70 65 72 20 66 6f 72 | 20 65 78 70 65 72 69 6d |oper for| experim|
|000015e0| 65 6e 74 73 2e 20 49 66 | 20 79 6f 75 20 77 61 6e |ents. If| you wan|
|000015f0| 74 20 74 6f 2c 20 69 74 | 20 77 6f 75 6c 64 20 62 |t to, it| would b|
|00001600| 65 20 65 61 73 79 20 74 | 6f 20 6d 61 6b 65 20 74 |e easy t|o make t|
|00001610| 68 65 20 70 72 6f 67 72 | 61 6d 73 20 70 6f 6c 69 |he progr|ams poli|
|00001620| 74 65 20 62 79 20 61 64 | 64 69 6e 67 20 63 61 6c |te by ad|ding cal|
|00001630| 6c 73 20 74 6f 20 75 73 | 69 6e 67 20 57 61 69 74 |ls to us|ing Wait|
|00001640| 4e 65 78 74 45 76 65 6e | 74 28 29 2c 20 66 6f 6c |NextEven|t(), fol|
|00001650| 6c 6f 77 69 6e 67 20 41 | 70 70 6c 65 d5 73 20 67 |lowing A|pple.s g|
|00001660| 75 69 64 65 6c 69 6e 65 | 73 20 69 6e 20 74 68 65 |uideline|s in the|
|00001670| 20 22 4e 65 77 20 49 6e | 73 69 64 65 20 4d 61 63 | "New In|side Mac|
|00001680| 69 6e 74 6f 73 68 3a 20 | 4d 65 6d 6f 72 79 22 20 |intosh: |Memory" |
|00001690| 62 6f 6f 6b 2e 0d 0d 56 | 49 44 45 4f 20 43 41 52 |book...V|IDEO CAR|
|000016a0| 44 20 43 4f 4d 50 41 54 | 49 42 49 4c 49 54 59 3a |D COMPAT|IBILITY:|
|000016b0| 0d 41 6c 6c 20 4d 61 63 | 69 6e 74 6f 73 68 20 76 |.All Mac|intosh v|
|000016c0| 69 64 65 6f 20 63 61 72 | 64 73 20 61 6e 64 20 62 |ideo car|ds and b|
|000016d0| 75 69 6c 74 2d 69 6e 20 | 76 69 64 65 6f 20 64 65 |uilt-in |video de|
|000016e0| 76 69 63 65 73 20 63 6f | 6d 65 20 77 69 74 68 20 |vices co|me with |
|000016f0| 76 69 64 65 6f 20 64 72 | 69 76 65 72 73 20 74 68 |video dr|ivers th|
|00001700| 61 74 20 63 6f 6e 66 6f | 72 6d 20 73 75 66 66 69 |at confo|rm suffi|
|00001710| 63 69 65 6e 74 6c 79 20 | 77 65 6c 6c 20 74 6f 20 |ciently |well to |
|00001720| 74 68 65 20 41 70 70 6c | 65 20 67 75 69 64 65 6c |the Appl|e guidel|
|00001730| 69 6e 65 73 20 74 68 61 | 74 20 74 68 65 79 20 61 |ines tha|t they a|
|00001740| 72 65 20 63 6f 6d 70 61 | 74 69 62 6c 65 20 77 69 |re compa|tible wi|
|00001750| 74 68 20 74 68 65 20 56 | 69 64 65 6f 54 6f 6f 6c |th the V|ideoTool|
|00001760| 62 6f 78 2c 20 62 75 74 | 20 74 68 65 79 20 6d 61 |box, but| they ma|
|00001770| 79 20 62 65 20 6d 75 63 | 68 20 73 6c 6f 77 65 72 |y be muc|h slower|
|00001780| 20 74 68 61 6e 20 79 6f | 75 d5 64 20 67 75 65 73 | than yo|u.d gues|
|00001790| 73 2e 20 54 68 69 73 20 | 69 73 20 64 69 73 63 75 |s. This |is discu|
|000017a0| 73 73 65 64 20 69 6e 20 | 74 68 65 20 64 6f 63 75 |ssed in |the docu|
|000017b0| 6d 65 6e 74 73 20 d2 56 | 69 64 65 6f 20 73 79 6e |ments .V|ideo syn|
|000017c0| 63 68 d3 20 61 6e 64 20 | d2 56 69 64 65 6f 20 62 |ch. and |.Video b|
|000017d0| 75 67 73 d3 2e 20 59 6f | 75 20 73 68 6f 75 6c 64 |ugs.. Yo|u should|
|000017e0| 20 63 68 65 63 6b 20 6f | 75 74 20 79 6f 75 72 20 | check o|ut your |
|000017f0| 76 69 64 65 6f 20 64 72 | 69 76 65 72 73 20 62 79 |video dr|ivers by|
|00001800| 20 72 75 6e 6e 69 6e 67 | 20 74 68 65 20 73 65 6c | running| the sel|
|00001810| 66 2d 65 78 70 6c 61 6e | 61 74 6f 72 79 20 64 65 |f-explan|atory de|
|00001820| 6d 6f 20 54 69 6d 65 56 | 69 64 65 6f 2e 20 28 59 |mo TimeV|ideo. (Y|
|00001830| 6f 75 20 6d 69 67 68 74 | 20 61 6c 73 6f 20 77 61 |ou might| also wa|
|00001840| 6e 74 20 74 6f 20 74 72 | 79 20 74 68 65 20 6d 6f |nt to tr|y the mo|
|00001850| 72 65 20 61 72 63 61 6e | 65 20 64 65 6d 6f 20 54 |re arcan|e demo T|
|00001860| 65 73 74 47 44 56 69 64 | 65 6f 2c 20 77 68 69 63 |estGDVid|eo, whic|
|00001870| 68 20 61 73 73 75 6d 65 | 73 20 66 61 6d 69 6c 69 |h assume|s famili|
|00001880| 61 72 69 74 79 20 77 69 | 74 68 20 41 70 70 6c 65 |arity wi|th Apple|
|00001890| d5 73 20 44 65 73 69 67 | 6e 69 6e 67 20 43 61 72 |.s Desig|ning Car|
|000018a0| 64 73 20 61 6e 64 20 44 | 72 69 76 65 72 73 20 62 |ds and D|rivers b|
|000018b0| 6f 6f 6b 2e 29 0d 0d 52 | 45 51 55 49 52 45 2e 20 |ook.)..R|EQUIRE. |
|000018c0| 54 68 65 20 56 69 64 65 | 6f 54 6f 6f 6c 62 6f 78 |The Vide|oToolbox|
|000018d0| 20 72 6f 75 74 69 6e 65 | 20 52 65 71 75 69 72 65 | routine| Require|
|000018e0| 2e 63 20 77 69 6c 6c 20 | 63 68 65 63 6b 20 66 6f |.c will |check fo|
|000018f0| 72 20 61 6e 79 20 72 65 | 71 75 69 72 65 64 20 63 |r any re|quired c|
|00001900| 70 75 2c 20 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 |pu, floa|ting poi|
|00001910| 6e 74 20 63 68 69 70 2c | 20 61 6e 64 20 6c 65 76 |nt chip,| and lev|
|00001920| 65 6c 20 6f 66 20 51 75 | 69 63 6b 44 72 61 77 20 |el of Qu|ickDraw |
|00001930| 61 6e 64 20 71 75 69 74 | 73 20 77 69 74 68 20 61 |and quit|s with a|
|00001940| 6e 20 65 78 70 6c 61 6e | 61 74 69 6f 6e 20 69 66 |n explan|ation if|
|00001950| 20 74 68 65 79 d5 72 65 | 20 61 62 73 65 6e 74 2e | they.re| absent.|
|00001960| 20 4d 69 6e 69 6d 61 6c | 6c 79 2c 20 69 66 20 79 | Minimal|ly, if y|
|00001970| 6f 75 72 20 70 72 6f 67 | 72 61 6d 20 75 73 65 73 |our prog|ram uses|
|00001980| 20 43 6f 6c 6f 72 20 51 | 75 69 63 6b 44 72 61 77 | Color Q|uickDraw|
|00001990| 20 28 65 2e 67 2e 20 69 | 66 20 79 6f 75 72 20 70 | (e.g. i|f your p|
|000019a0| 72 6f 67 72 61 6d 20 75 | 73 65 73 20 61 20 47 44 |rogram u|ses a GD|
|000019b0| 48 61 6e 64 6c 65 29 20 | 74 68 65 6e 20 79 6f 75 |Handle) |then you|
|000019c0| 72 20 70 72 6f 67 72 61 | 6d 20 73 68 6f 75 6c 64 |r progra|m should|
|000019d0| 20 62 65 67 69 6e 20 62 | 79 20 63 61 6c 6c 69 6e | begin b|y callin|
|000019e0| 67 20 52 65 71 75 69 72 | 65 28 67 65 73 74 61 6c |g Requir|e(gestal|
|000019f0| 74 38 42 69 74 51 44 29 | 2e 20 49 66 20 79 6f 75 |t8BitQD)|. If you|
|00001a00| 20 75 73 65 20 74 68 65 | 20 4e 65 77 20 50 61 6c | use the| New Pal|
|00001a10| 65 74 74 65 20 4d 61 6e | 61 67 65 72 2c 20 65 2e |ette Man|ager, e.|
|00001a20| 67 2e 20 53 65 74 44 65 | 70 74 68 2c 20 74 68 65 |g. SetDe|pth, the|
|00001a30| 6e 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 75 73 65 |n you sh|ould use|
|00001a40| 20 47 65 73 74 61 6c 74 | 28 29 20 74 6f 20 72 65 | Gestalt|() to re|
|00001a50| 71 75 69 72 65 20 53 79 | 73 74 65 6d 20 36 2e 30 |quire Sy|stem 6.0|
|00001a60| 35 20 6f 72 20 62 65 74 | 74 65 72 2e 20 48 6f 77 |5 or bet|ter. How|
|00001a70| 65 76 65 72 2c 20 6f 66 | 66 73 63 72 65 65 6e 20 |ever, of|fscreen |
|00001a80| 47 57 6f 72 6c 64 73 20 | 61 72 65 20 76 65 72 79 |GWorlds |are very|
|00001a90| 20 68 61 6e 64 79 20 61 | 6e 64 20 72 65 71 75 69 | handy a|nd requi|
|00001aa0| 72 65 20 33 32 2d 62 69 | 74 20 51 75 69 63 6b 44 |re 32-bi|t QuickD|
|00001ab0| 72 61 77 2c 20 73 6f 20 | 66 6f 72 20 6d 6f 73 74 |raw, so |for most|
|00001ac0| 20 70 65 6f 70 6c 65 20 | 49 d5 64 20 73 75 67 67 | people |I.d sugg|
|00001ad0| 65 73 74 20 6a 75 73 74 | 20 63 61 6c 6c 69 6e 67 |est just| calling|
|00001ae0| 20 52 65 71 75 69 72 65 | 28 67 65 73 74 61 6c 74 | Require|(gestalt|
|00001af0| 33 32 42 69 74 51 44 29 | 2e 20 54 68 61 74 d5 73 |32BitQD)|. That.s|
|00001b00| 20 65 6e 6f 75 67 68 20 | 74 6f 20 67 75 61 72 61 | enough |to guara|
|00001b10| 6e 74 65 65 20 61 76 61 | 69 6c 61 62 69 6c 69 74 |ntee ava|ilabilit|
|00001b20| 79 20 6f 66 20 61 6c 6c | 20 74 68 65 20 51 75 69 |y of all| the Qui|
|00001b30| 63 6b 44 72 61 77 20 74 | 72 61 70 73 20 69 6e 20 |ckDraw t|raps in |
|00001b40| 49 6e 73 69 64 65 20 4d | 61 63 20 49 2d 56 49 2c |Inside M|ac I-VI,|
|00001b50| 20 65 78 63 65 70 74 20 | 74 68 61 74 20 47 65 74 | except |that Get|
|00001b60| 50 69 78 42 61 73 65 41 | 64 64 72 28 29 20 67 61 |PixBaseA|ddr() ga|
|00001b70| 76 65 20 77 72 6f 6e 67 | 20 61 6e 73 77 65 72 73 |ve wrong| answers|
|00001b80| 20 69 6e 20 65 61 72 6c | 79 20 76 65 72 73 69 6f | in earl|y versio|
|00001b90| 6e 73 20 6f 66 20 33 32 | 2d 62 69 74 20 51 75 69 |ns of 32|-bit Qui|
|00001ba0| 63 6b 44 72 61 77 2c 20 | 73 6f 20 75 73 65 20 74 |ckDraw, |so use t|
|00001bb0| 68 65 20 56 69 64 65 6f | 54 6f 6f 6c 62 6f 78 20 |he Video|Toolbox |
|00001bc0| 72 6f 75 74 69 6e 65 20 | 47 65 74 50 69 78 42 61 |routine |GetPixBa|
|00001bd0| 73 65 41 64 64 72 33 32 | 28 29 20 69 6e 73 74 65 |seAddr32|() inste|
|00001be0| 61 64 2c 20 69 6e 20 52 | 65 63 74 54 6f 41 64 64 |ad, in R|ectToAdd|
|00001bf0| 72 65 73 73 2e 63 2e 0d | 0d 50 49 58 45 4c 53 49 |ress.c..|.PIXELSI|
|00001c00| 5a 45 2e 20 59 6f 75 72 | 20 70 72 6f 67 72 61 6d |ZE. Your| program|
|00001c10| 73 20 73 68 6f 75 6c 64 | 20 6e 6f 74 20 61 73 73 |s should| not ass|
|00001c20| 75 6d 65 20 61 6e 79 20 | 70 61 72 74 69 63 75 6c |ume any |particul|
|00001c30| 61 72 20 73 63 72 65 65 | 6e 20 64 65 70 74 68 20 |ar scree|n depth |
|00001c40| 6f 72 20 73 69 7a 65 2e | 20 49 6e 73 74 65 61 64 |or size.| Instead|
|00001c50| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 67 65 74 20 | you sho|uld get |
|00001c60| 74 68 65 6d 20 66 72 6f | 6d 20 74 68 65 20 73 63 |them fro|m the sc|
|00001c70| 72 65 65 6e d5 73 20 47 | 44 48 61 6e 64 6c 65 2c |reen.s G|DHandle,|
|00001c80| 20 77 68 69 63 68 20 49 | 20 6c 69 6b 65 20 74 6f | which I| like to|
|00001c90| 20 63 61 6c 6c 20 d2 64 | 65 76 69 63 65 d3 3a 0d | call .d|evice.:.|
|00001ca0| 09 64 65 76 69 63 65 3d | 47 65 74 53 63 72 65 65 |.device=|GetScree|
|00001cb0| 6e 44 65 76 69 63 65 28 | 31 29 3b 0d 09 70 69 78 |nDevice(|1);..pix|
|00001cc0| 65 6c 53 69 7a 65 3d 28 | 2a 2a 28 2a 2a 64 65 76 |elSize=(|**(**dev|
|00001cd0| 69 63 65 29 2e 67 64 50 | 4d 61 70 29 2e 70 69 78 |ice).gdP|Map).pix|
|00001ce0| 65 6c 53 69 7a 65 3b 0d | 09 63 6f 6c 6f 72 73 3d |elSize;.|.colors=|
|00001cf0| 47 44 43 6f 6c 6f 72 73 | 28 64 65 76 69 63 65 29 |GDColors|(device)|
|00001d00| 3b 09 2f 2f 20 6e 75 6d | 62 65 72 20 6f 66 20 64 |;.// num|ber of d|
|00001d10| 69 66 66 65 72 65 6e 74 | 20 63 6f 6c 6f 72 73 20 |ifferent| colors |
|00001d20| 74 68 61 74 20 63 61 6e | 20 62 65 20 64 69 73 70 |that can| be disp|
|00001d30| 6c 61 79 65 64 0d 09 63 | 6c 75 74 53 69 7a 65 3d |layed..c|lutSize=|
|00001d40| 47 44 43 6c 75 74 53 69 | 7a 65 28 64 65 76 69 63 |GDClutSi|ze(devic|
|00001d50| 65 29 3b 09 2f 2f 20 6e | 75 6d 62 65 72 20 6f 66 |e);.// n|umber of|
|00001d60| 20 72 67 62 20 65 6e 74 | 72 69 65 73 20 69 6e 20 | rgb ent|ries in |
|00001d70| 74 68 65 20 63 6c 75 74 | 0d 09 72 65 63 74 3d 28 |the clut|..rect=(|
|00001d80| 2a 64 65 76 69 63 65 29 | 2d 3e 67 64 52 65 63 74 |*device)|->gdRect|
|00001d90| 3b 09 2f 2f 20 69 6e 20 | 67 6c 6f 62 61 6c 20 63 |;.// in |global c|
|00001da0| 6f 6f 72 64 69 6e 61 74 | 65 73 0d 09 74 79 70 65 |oordinat|es..type|
|00001db0| 3d 28 2a 64 65 76 69 63 | 65 29 2d 3e 67 64 54 79 |=(*devic|e)->gdTy|
|00001dc0| 70 65 3b 09 2f 2f 20 76 | 61 6c 75 65 20 69 73 20 |pe;.// v|alue is |
|00001dd0| 6f 6e 65 20 6f 66 3a 20 | 63 6c 75 74 54 79 70 65 |one of: |clutType|
|00001de0| 2c 20 64 69 72 65 63 74 | 54 79 70 65 2c 20 6f 72 |, direct|Type, or|
|00001df0| 20 66 69 78 65 64 54 79 | 70 65 0d 49 74 d5 73 20 | fixedTy|pe.It.s |
|00001e00| 75 73 65 66 75 6c 20 74 | 6f 20 63 68 65 63 6b 20 |useful t|o check |
|00001e10| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 65 76 69 |the curr|ent devi|
|00001e20| 63 65 20 d2 74 79 70 65 | d3 3b 20 74 79 70 65 3d |ce .type|.; type=|
|00001e30| 3d 63 6c 75 74 54 79 70 | 65 20 69 6e 64 69 63 61 |=clutTyp|e indica|
|00001e40| 74 65 73 20 74 68 61 74 | 20 65 61 63 68 20 70 69 |tes that| each pi|
|00001e50| 78 65 6c 20 69 73 20 77 | 68 6f 6c 6c 79 20 74 72 |xel is w|holly tr|
|00001e60| 61 6e 73 66 6f 72 6d 65 | 64 20 62 79 20 61 20 73 |ansforme|d by a s|
|00001e70| 69 6e 67 6c 65 20 70 72 | 6f 67 72 61 6d 6d 61 62 |ingle pr|ogrammab|
|00001e80| 6c 65 20 63 6f 6c 6f 72 | 20 6c 6f 6f 6b 75 70 20 |le color| lookup |
|00001e90| 74 61 62 6c 65 3b 20 74 | 79 70 65 3d 3d 66 69 78 |table; t|ype==fix|
|00001ea0| 65 64 54 79 70 65 20 68 | 61 73 20 61 20 73 69 6d |edType h|as a sim|
|00001eb0| 69 6c 61 72 20 6d 65 61 | 6e 69 6e 67 20 65 78 63 |ilar mea|ning exc|
|00001ec0| 65 70 74 20 74 68 61 74 | 20 74 68 65 20 63 6f 6c |ept that| the col|
|00001ed0| 6f 72 20 6c 6f 6f 6b 75 | 70 20 74 61 62 6c 65 20 |or looku|p table |
|00001ee0| 63 61 6e 6e 6f 74 20 62 | 65 20 63 68 61 6e 67 65 |cannot b|e change|
|00001ef0| 64 3b 20 74 79 70 65 3d | 3d 64 69 72 65 63 74 54 |d; type=|=directT|
|00001f00| 79 70 65 20 69 6e 64 69 | 63 61 74 65 73 20 74 68 |ype indi|cates th|
|00001f10| 61 74 20 65 61 63 68 20 | 70 69 78 65 6c 20 69 73 |at each |pixel is|
|00001f20| 20 62 72 6f 6b 65 6e 20 | 75 70 20 69 6e 74 6f 20 | broken |up into |
|00001f30| 74 68 72 65 65 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |three co|mponents|
|00001f40| 20 74 68 61 74 20 61 72 | 65 20 69 6e 64 69 76 69 | that ar|e indivi|
|00001f50| 64 75 61 6c 6c 79 20 74 | 72 61 6e 73 66 6f 72 6d |dually t|ransform|
|00001f60| 65 64 20 62 79 20 74 68 | 72 65 65 20 70 72 6f 67 |ed by th|ree prog|
|00001f70| 72 61 6d 6d 61 62 6c 65 | 20 6c 6f 6f 6b 75 70 20 |rammable| lookup |
|00001f80| 74 61 62 6c 65 73 2e 20 | 54 68 65 20 63 6c 75 74 |tables. |The clut|
|00001f90| 53 69 7a 65 20 69 73 20 | 61 6c 77 61 79 73 20 6c |Size is |always l|
|00001fa0| 65 73 73 20 74 68 61 6e | 20 6f 72 20 65 71 75 61 |ess than| or equa|
|00001fb0| 6c 20 74 6f 20 32 35 36 | 2e 20 28 49 74 d5 73 20 |l to 256|. (It.s |
|00001fc0| 31 3c 3c 70 69 78 65 6c | 53 69 7a 65 20 75 6e 6c |1<<pixel|Size unl|
|00001fd0| 65 73 73 20 79 6f 75 d5 | 72 65 20 69 6e 20 31 36 |ess you.|re in 16|
|00001fe0| 2d 20 6f 72 20 33 32 2d | 62 69 74 20 6d 6f 64 65 |- or 32-|bit mode|
|00001ff0| 2c 20 69 2e 65 2e 20 74 | 79 70 65 3d 3d 64 69 72 |, i.e. t|ype==dir|
|00002000| 65 63 74 54 79 70 65 2c | 20 69 6e 20 77 68 69 63 |ectType,| in whic|
|00002010| 68 20 63 61 73 65 20 74 | 68 65 20 63 6c 75 74 53 |h case t|he clutS|
|00002020| 69 7a 65 20 77 69 6c 6c | 20 62 65 20 33 32 20 6f |ize will| be 32 o|
|00002030| 72 20 32 35 36 2c 20 73 | 69 6e 63 65 20 74 68 65 |r 256, s|ince the|
|00002040| 20 63 6c 75 74 20 69 73 | 20 74 68 65 6e 20 74 72 | clut is| then tr|
|00002050| 65 61 74 65 64 20 61 73 | 20 74 68 72 65 65 20 73 |eated as| three s|
|00002060| 65 70 61 72 61 74 65 20 | 33 32 2d 20 6f 72 20 32 |eparate |32- or 2|
|00002070| 35 36 2d 65 6e 74 72 79 | 20 6c 6f 6f 6b 75 70 20 |56-entry| lookup |
|00002080| 74 61 62 6c 65 73 2e 20 | 41 20 31 36 2d 62 69 74 |tables. |A 16-bit|
|00002090| 20 70 69 78 65 6c 20 69 | 73 20 62 72 6f 6b 65 6e | pixel i|s broken|
|000020a0| 20 75 70 20 69 6e 74 6f | 20 74 68 72 65 65 20 35 | up into| three 5|
|000020b0| 2d 62 69 74 20 69 6e 64 | 69 63 65 73 2c 20 64 69 |-bit ind|ices, di|
|000020c0| 73 63 61 72 64 69 6e 67 | 20 74 68 65 20 68 69 67 |scarding| the hig|
|000020d0| 68 65 73 74 20 62 69 74 | 3b 20 61 20 33 32 2d 62 |hest bit|; a 32-b|
|000020e0| 69 74 20 70 69 78 65 6c | 20 69 73 20 62 72 6f 6b |it pixel| is brok|
|000020f0| 65 6e 20 75 70 20 69 6e | 74 6f 20 74 68 72 65 65 |en up in|to three|
|00002100| 20 38 2d 62 69 74 20 69 | 6e 64 69 63 65 73 2c 20 | 8-bit i|ndices, |
|00002110| 64 69 73 63 61 72 64 69 | 6e 67 20 74 68 65 20 68 |discardi|ng the h|
|00002120| 69 67 68 65 73 74 20 38 | 20 62 69 74 73 2e 29 20 |ighest 8| bits.) |
|00002130| 49 66 20 79 6f 75 20 70 | 72 65 66 65 72 20 61 20 |If you p|refer a |
|00002140| 70 61 72 74 69 63 75 6c | 61 72 20 73 63 72 65 65 |particul|ar scree|
|00002150| 6e 20 64 65 70 74 68 20 | 79 6f 75 20 63 61 6e 20 |n depth |you can |
|00002160| 74 72 79 20 74 6f 20 67 | 65 74 20 69 74 20 62 79 |try to g|et it by|
|00002170| 20 63 61 6c 6c 69 6e 67 | 20 48 61 73 44 65 70 74 | calling| HasDept|
|00002180| 68 28 29 20 61 6e 64 20 | 53 65 74 44 65 70 74 68 |h() and |SetDepth|
|00002190| 28 29 2c 20 77 68 69 63 | 68 20 61 72 65 20 64 6f |(), whic|h are do|
|000021a0| 63 75 6d 65 6e 74 65 64 | 20 69 6e 20 49 6e 73 69 |cumented| in Insi|
|000021b0| 64 65 20 4d 61 63 20 56 | 49 2e 20 28 4e 6f 74 65 |de Mac V|I. (Note|
|000021c0| 20 74 68 61 74 20 48 61 | 73 44 65 70 74 68 20 61 | that Ha|sDepth a|
|000021d0| 6e 64 20 53 65 74 44 65 | 70 74 68 20 61 72 65 20 |nd SetDe|pth are |
|000021e0| 70 61 72 74 20 6f 66 20 | 74 68 65 20 d2 4e 65 77 |part of |the .New|
|000021f0| d3 20 50 61 6c 65 74 74 | 65 20 4d 61 6e 61 67 65 |. Palett|e Manage|
|00002200| 72 2c 20 77 68 69 63 68 | 20 77 69 6c 6c 20 62 65 |r, which| will be|
|00002210| 20 70 72 65 73 65 6e 74 | 20 6f 6e 6c 79 20 69 66 | present| only if|
|00002220| 20 79 6f 75 20 68 61 76 | 65 20 43 6f 6c 6f 72 20 | you hav|e Color |
|00002230| 51 75 69 63 6b 44 72 61 | 77 20 61 6e 64 20 74 68 |QuickDra|w and th|
|00002240| 65 20 53 79 73 74 65 6d | 20 69 73 20 61 74 20 6c |e System| is at l|
|00002250| 65 61 73 74 20 36 2e 30 | 35 20 6f 72 20 79 6f 75 |east 6.0|5 or you|
|00002260| 20 68 61 76 65 20 33 32 | 2d 62 69 74 20 51 75 69 | have 32|-bit Qui|
|00002270| 63 6b 44 72 61 77 2e 29 | 20 0d 0d 32 34 2f 33 32 |ckDraw.)| ..24/32|
|00002280| 2d 62 69 74 20 41 44 44 | 52 45 53 53 49 4e 47 2e |-bit ADD|RESSING.|
|00002290| 20 57 68 65 6e 20 64 65 | 62 75 67 67 69 6e 67 2c | When de|bugging,|
|000022a0| 20 69 74 d5 73 20 63 6f | 6e 76 65 6e 69 65 6e 74 | it.s co|nvenient|
|000022b0| 20 74 6f 20 73 65 74 20 | 79 6f 75 72 20 4d 61 63 | to set |your Mac|
|000022c0| 20 74 6f 20 33 32 2d 62 | 69 74 20 61 64 64 72 65 | to 32-b|it addre|
|000022d0| 73 73 69 6e 67 20 28 75 | 73 65 20 74 68 65 20 4d |ssing (u|se the M|
|000022e0| 65 6d 6f 72 79 20 43 6f | 6e 74 72 6f 6c 20 50 61 |emory Co|ntrol Pa|
|000022f0| 6e 65 6c 29 20 73 69 6e | 63 65 20 74 68 69 73 20 |nel) sin|ce this |
|00002300| 61 6c 6c 6f 77 73 20 74 | 68 65 20 54 48 49 4e 4b |allows t|he THINK|
|00002310| 20 43 20 44 65 62 75 67 | 67 65 72 20 74 6f 20 77 | C Debug|ger to w|
|00002320| 6f 72 6b 20 61 6c 77 61 | 79 73 2c 20 65 76 65 6e |ork alwa|ys, even|
|00002330| 20 69 6e 20 73 65 63 74 | 69 6f 6e 73 20 6f 66 20 | in sect|ions of |
|00002340| 63 6f 64 65 20 74 68 61 | 74 20 61 72 65 20 73 75 |code tha|t are su|
|00002350| 72 72 6f 75 6e 64 65 64 | 20 62 79 20 63 61 6c 6c |rrounded| by call|
|00002360| 73 20 74 6f 20 53 77 61 | 70 4d 4d 55 4d 6f 64 65 |s to Swa|pMMUMode|
|00002370| 2e 20 48 6f 77 65 76 65 | 72 2c 20 62 65 61 72 20 |. Howeve|r, bear |
|00002380| 69 6e 20 6d 69 6e 64 20 | 74 68 61 74 20 69 6e 20 |in mind |that in |
|00002390| 74 68 69 73 20 63 6f 6e | 67 65 6e 69 61 6c 20 33 |this con|genial 3|
|000023a0| 32 2d 62 69 74 20 61 64 | 64 72 65 73 73 69 6e 67 |2-bit ad|dressing|
|000023b0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2c 20 53 77 | environ|ment, Sw|
|000023c0| 61 70 4d 4d 55 4d 6f 64 | 65 20 61 6e 64 20 53 74 |apMMUMod|e and St|
|000023d0| 72 69 70 41 64 64 72 65 | 73 73 20 64 6f 6e d5 74 |ripAddre|ss don.t|
|000023e0| 20 64 6f 20 61 6e 79 74 | 68 69 6e 67 2e 20 49 74 | do anyt|hing. It|
|000023f0| d5 73 20 65 61 73 79 20 | 74 6f 20 66 6f 72 67 65 |.s easy |to forge|
|00002400| 74 20 74 6f 20 63 61 6c | 6c 20 53 74 72 69 70 41 |t to cal|l StripA|
|00002410| 64 64 72 65 73 73 20 6f | 6e 20 61 6c 6c 20 74 68 |ddress o|n all th|
|00002420| 65 20 52 41 4d 20 61 64 | 64 72 65 73 73 65 73 20 |e RAM ad|dresses |
|00002430| 74 68 61 74 20 79 6f 75 | 20 61 63 63 65 73 73 20 |that you| access |
|00002440| 69 6e 20 33 32 2d 62 69 | 74 2d 61 64 64 72 65 73 |in 32-bi|t-addres|
|00002450| 73 69 6e 67 20 6d 6f 64 | 65 2e 20 59 6f 75 20 6d |sing mod|e. You m|
|00002460| 61 79 20 6e 6f 74 20 64 | 69 73 63 6f 76 65 72 20 |ay not d|iscover |
|00002470| 73 75 63 68 20 62 75 67 | 73 20 69 6e 20 79 6f 75 |such bug|s in you|
|00002480| 72 20 70 72 6f 67 72 61 | 6d 20 75 6e 74 69 6c 20 |r progra|m until |
|00002490| 79 6f 75 20 72 75 6e 20 | 69 74 20 6f 6e 20 61 20 |you run |it on a |
|000024a0| 4d 61 63 20 73 65 74 20 | 74 6f 20 32 34 2d 62 69 |Mac set |to 24-bi|
|000024b0| 74 20 61 64 64 72 65 73 | 73 69 6e 67 2e 0d 00 00 |t addres|sing....|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 00 01 00 00 00 01 b4 | 00 00 00 b4 00 00 00 82 |........|........|
|00002510| 6e 65 20 22 7b 53 68 65 | 6c 6c 44 69 72 65 63 74 |ne "{She|llDirect|
|00002520| 6f 72 79 7d 22 43 6f 6d | 70 61 72 65 5f 46 69 6c |ory}"Com|pare_Fil|
|00002530| 0b 50 6f 72 74 61 62 69 | 6c 69 74 79 02 00 00 00 |.Portabi|lity....|
|00002540| 50 61 72 74 53 49 54 21 | 00 00 00 00 00 00 00 00 |PartSIT!|........|
|00002550| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 ab bf ee 3e 00 00 | 00 00 00 00 02 36 7b 4d |.....>..|.....6{M|
|00002580| 79 53 74 61 74 75 73 7d | 0d 09 65 6e 64 0d 09 45 |yStatus}|..end..E|
|00002590| 78 65 63 75 74 65 20 22 | 7b 53 68 65 6c 6c 44 69 |xecute "|{ShellDi|
|000025a0| 72 65 63 74 6f 72 79 7d | 43 6f 6d 70 61 72 65 5f |rectory}|Compare_|
|000025b0| 46 69 6c 65 2e a4 22 0d | 09 53 65 74 20 73 65 6c |File..".|.Set sel|
|000025c0| 43 68 61 72 73 20 60 50 | 6f 73 69 74 69 6f 6e 20 |Chars `P|osition |
|000025d0| 2d 63 20 22 7b 41 63 74 | 69 76 65 7d 22 60 09 09 |-c "{Act|ive}"`..|
|000025e0| 09 09 23 20 73 65 65 20 | 69 66 20 77 65 20 6e 65 |..# see |if we ne|
|000025f0| 65 64 20 74 6f 20 63 6f | 70 79 2f 70 61 73 74 65 |ed to co|py/paste|
|00002600| 00 00 00 2a 00 09 06 47 | 65 6e 65 76 61 00 00 00 |...*...G|eneva...|
|00002610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 00 04 00 06 00 04 00 00 | 00 14 01 d4 00 43 00 32 |........|.....C.2|
|00002640| ff ef 00 2a 00 00 00 00 | 13 84 00 00 13 84 00 00 |...*....|........|
|00002650| 00 48 00 09 4d 6f 6e 61 | 63 6f 00 00 00 00 00 00 |.H..Mona|co......|
|00002660| 00 00 00 00 00 68 00 00 | 5d d8 00 00 00 00 00 00 |.....h..|].......|
|00002670| 00 00 00 4b 00 06 00 04 | 00 5f 00 3b 01 8c 02 54 |...K....|._.;...T|
|00002680| 00 5f 00 3b 01 8c 02 54 | aa e1 99 90 00 00 25 4a |._.;...T|......%J|
|00002690| 00 00 25 4a 00 00 00 00 | 03 00 00 00 00 16 00 01 |..%J....|........|
|000026a0| 00 00 00 00 00 10 00 0c | 00 01 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 01 00 | 00 00 01 b4 00 00 00 b4 |........|........|
|000026c0| 00 00 00 82 00 c9 1d 50 | 2a 3c 00 00 00 1c 00 82 |.......P|*<......|
|000026d0| 00 04 45 46 4e 54 00 00 | 00 2a 45 54 41 42 00 00 |..EFNT..|.*ETAB..|
|000026e0| 00 36 45 51 45 44 00 00 | 00 42 4d 50 53 52 00 00 |.6EQED..|.BMPSR..|
|000026f0| 00 4e 73 74 79 6c 00 00 | 00 5a 03 eb ff ff 00 00 |.Nstyl..|.Z......|
|00002700| 00 00 00 00 00 00 03 ec | ff ff 00 00 00 2e 00 00 |........|........|
|00002710| 00 00 03 eb ff ff 00 00 | 00 36 00 00 00 00 03 ed |........|.6......|
|00002720| ff ff 00 00 00 4e 00 00 | 00 00 00 80 ff ff 00 00 |.....N..|........|
|00002730| 00 9a 00 c9 15 88 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+